﻿using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

namespace Vabp.Helper
{
    public class CommonHelper
    {
        public static string Encrypted(string password)
        {
            using var md5 = MD5.Create();
            byte[] hash = md5.ComputeHash(Encoding.UTF8.GetBytes(password));

            return BitConverter.ToString(hash)?.Replace("-","");
        }
    }
}
